<?php
/* [$WindsForce] (C)Hunzhiwange.COM Since 2012.03.17.
   后台基本配置文件($$)*/

!defined('Q_PATH') && exit;

$arrAppConfigs=array(
	'PHP_OFF'=>TRUE,
	'TMPL_MODULE_ACTION_DEPR'=>'/',
	'DEFAULT_APP'=>'admin',
);

// 读取全局配置
$arrGlobalConfig=(array)require(WINDSFORCE_PATH.'/System/common/Config.default.inc.php');
$arrGlobalConfig=array_merge($arrGlobalConfig,(array)require(WINDSFORCE_PATH.'/~@~/Config.inc.php'));

// 关闭调试
$arrGlobalConfig['SHOW_RUN_TIME']=FALSE;
$arrGlobalConfig['SHOW_DB_TIMES']=FALSE;
$arrGlobalConfig['SHOW_GZIP_STATUS']=FALSE;

// RBAC重置
$arrGlobalConfig['USER_AUTH_GATEWAY']='public/login';
$arrGlobalConfig['RBAC_ERROR_PAGE']='';

// 后台模板重设置
$arrAppConfigs['TPL_DIR']=$arrGlobalConfig['ADMIN_TPL_DIR'];
unset($arrGlobalConfig['ADMIN_TPL_DIR']);

// 后台模板和主题COOKIE前缀
$arrGlobalConfig['COOKIE_LANG_TEMPLATE_INCLUDE_APPNAME']=TRUE;

// 使用普通URL模式
$arrGlobalConfig['URL_MODEL']=0;

// 后台语言包相关
$arrAppConfigs['LANG']=$arrGlobalConfig['ADMIN_LANGUAGE_DIR'];
unset($arrGlobalConfig['ADMIN_LANGUAGE_DIR']);
$arrGlobalConfig['LANG_SWITCH']=TRUE;

// 重置URL_DOMAIN
if(APP_NAME==='admin'){
	$arrGlobalConfig['URL_DOMAIN']='';
	$arrGlobalConfig['SITE_DEFAULT']=1;
	$arrGlobalConfig['DOMAIN_ON']=false;
	$arrGlobalConfig['DOMAIN_TOP']='';
	$arrGlobalConfig['DOMAIN_SUFFIX']='';
	$arrGlobalConfig['URL_DOMAIN_ON']=false;
	$arrGlobalConfig['URL_DOMAIN']='';
}else{
	$arrGlobalConfig['SHOP_LIMIT']=array(
		0=>array(// 普通商铺
			'REFRESH_TIMES'=>1,// 刷新次数
			'CASE'=>'200',// 作品
			'ROOM'=>'200',// 样板房
			'EVENT'=>'20',// 优惠活动
			'DIARY'=>'500',// 装修日记
			'ANLI'=>'500',// 装修案例
			'PACKAGE'=>'100',// 家装套餐
			'VIDEO'=>'50',// 家装视频
			'BUILD'=>'200',// 在建工地
		),
		1=>array(
			'REFRESH_TIMES'=>3,
			'CASE'=>'50',
			'ROOM'=>'50',
			'EVENT'=>'5',
			'DIARY'=>'200',
			'ANLI'=>'200',
			'PACKAGE'=>'20',
			'VIDEO'=>'20',
			'BUILD'=>'50',
		),
	);
	$arrGlobalConfig['REFRESH_LIMITTIME']=3600;
}
$arrGlobalConfig['DEFAULT_CONTROL']='public';

// 关闭标签
$arrGlobalConfig['GLOBALS_TAGS']=array();;

return array_merge($arrAppConfigs,$arrGlobalConfig);
